exports.data = {
	json: {
		kind: 'Snippet',
		body: ['"t-avatar": "tdesign-miniprogram/avatar/avatar"'],
		detail: 'avatar 按钮',
		documentation: `在app.json或index.json中引入组件`,
	},
	wxml: {
		kind: 'Snippet',
		body: ['<t-avatar ${1} />'],
		detail: 'Grid 宫格Item',
		documentation: `宫格可以在水平方向上把页面分隔成等宽度的区块，用于展示内容或进行页面导航。`,
		attrs: [
			{
				kind: 'Field',
				body: ['alt='],
				detail: 'alt',
				documentation: '头像替换文本，仅当图片加载失败时有效	',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['badge-props='],
				detail: 'badge-props',
				documentation: '透传至 Badge 属性',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['image-props='],
				detail: 'image-props',
				documentation: '透传至 image 属性',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['bordered'],
				detail: 'border',
				documentation: '是否显示下边框 已废弃。是否显示外边框',
				vals: {
					kind: 'Value',
					body: ['true', 'false'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['icon='],
				detail: 'icon',
				documentation:
					'图标名称。值为字符串表示图标名称，值为 Object 类型，表示透传至 icon	',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['image='],
				detail: 'image',
				documentation: '图片，可以是图片地址，也可以自定义图片节点',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['shape='],
				detail: 'shape',
				documentation: '形状。可选项：circle/round。',
				vals: {
					kind: 'Value',
					body: ['round', 'circle'],
					detail: '',
					documentation: '',
				},
			},
			{
				kind: 'Field',
				body: ['size='],
				detail: 'size',
				documentation: '尺寸，示例值：small/medium/large/24px/38px 等',
				vals: {
					kind: 'Value',
					body: ['large', 'small', 'medium'],
					detail: '',
					documentation: '',
				},
			},

			// 样式
			{
				kind: 'Field',
				body: ['t-class='],
				detail: 't-class',
				documentation: '根节点样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-image='],
				detail: 't-class-image',
				documentation: '图片样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-icon='],
				detail: 't-class-icon',
				documentation: '图标样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-alt='],
				detail: 't-class-alt',
				documentation: '替代文本样式类',
				vals: null,
			},
			{
				kind: 'Field',
				body: ['t-class-content='],
				detail: 't-class-content',
				documentation: '内容样式类',
				vals: null,
			},
		],
	},
}
